package com.fanrenqiji.service;

import com.fanrenqiji.common.service.IBaseService;
import com.fanrenqiji.vo.*;

import java.util.List;
import java.util.Map;

/**
 * Created by yanwt on 2017/3/24.
 */
public interface IStudentDailyScoreService extends IBaseService<StudentDailyScoreVO> {
    /**
     * 通过教师Id和班级id获取学生每日得分
     * @param teacherId
     * @param classRoomId
     * @return
     */
    List<StudentDailyScoreVO> getStudentDailyScoreByTeacherId(String teacherId,String classRoomId);

    /**
     * 根据学生Id查询事件类型
     * @param studentId
     * @return
     */
    List<Map> showType(String studentId);

    /**
     * 根据学生Id和事件类型Id查询一个实体，取第一条
     * @param studentId
     * @param categoryId
     * @return
     */
    List<StudentEventVO> getStudentEventVo(String studentId, String categoryId,String status);

    /**
     * 修改当日分数表，新增学生素材表，修改学生事件表
     * @param studentDailyScoreVO
     * @param list
     * @param studentEventVO
     */
    void update(StudentDailyScoreVO studentDailyScoreVO, List<StudentMediaVO> list,StudentEventVO studentEventVO);

    /**
     * 根据班级Id获取班级学生得分信息
     * @param classRoomId
     * @return
     */
    List<StudentScoreVO> getStudentScoreByClassRoom(String TeacherId,String classRoomId);

    /**
     * 根据学生id查询 StudentDailyScoreVO 按date字段 倒叙排列  从num起查size条
     * @param StudentId
     * @param num
     * @param size
     * @return
     */
    List<StudentDailyScoreVO> findStudentDailyScorebyStudentId(String StudentId,String num,String size);

}

